package org.custom.spring.boot.transaction.controller.stream;

import org.custom.spring.boot.transaction.service.stream.StreamTractionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * StreamTransactionController
 *
 * @author 李坤
 * @date 2022/3/20 17:23
 */
@RestController
@RequestMapping("/stream")
public class StreamTransactionController {
    @Resource
    private StreamTractionService streamTractionService;

    @GetMapping("/parallelStream")
    public void parallelStream_Transaction() {
        streamTractionService.validated_ParallelStream_Transaction();
    }
}
